package your.pachet;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.EditText;

public class Oras extends Activity
{
	
	
	static EditText edi;
   public void onCreate(Bundle icicle)
   {
      super.onCreate(icicle);
      setContentView(R.layout.screen);
      
      
      
      
      WindowManager.LayoutParams params = getWindow().getAttributes(); 
      params.x=0;
      params.y=0;
      params.height=LayoutParams.WRAP_CONTENT;
      params.width=LayoutParams.FILL_PARENT;
      this.getWindow().setAttributes(params); 
      
      
 Button b = (Button) findViewById(R.id.btnClick2);
      b.setOnClickListener(new View.OnClickListener() {
         public void onClick(View arg0) {
         setResult(0);
         finish();
         } 
      });
   
   
    edi=(EditText) findViewById(R.id.edit);
    
    
    
   
 Button t = (Button) findViewById(R.id.btnClick1); 
   t.setOnClickListener(new View.OnClickListener()
   { public void onClick(View arg0) {
      
	   Intent in=new Intent();
	   in.putExtra("nume",edi.getText().toString() );
	   setResult(RESULT_OK,in );
       finish();
       }} );
	   
	   
	   
	   
   
   
   
   
   } 
   
   
}
